//
//  LEReplyListCell.m
//  LoveExpressBusiness
//
//  Created by 刘甲奇 on 2017/5/11.
//  Copyright © 2017年 DFH. All rights reserved.
//

#import "LEReplyListCell.h"
#import "MakerTools.h"

@interface LEReplyListCell()

@property (weak, nonatomic) IBOutlet UILabel *phoneLabel;
@property (weak, nonatomic) IBOutlet UILabel *subjectLabel;
@property (weak, nonatomic) IBOutlet UILabel *timeLabel;
@property (weak, nonatomic) IBOutlet UILabel *statusLabel;


@end

@implementation LEReplyListCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

- (void)setModel:(LEReplyModel *)model
{
    self.phoneLabel.text = model.accuser_name;
    self.subjectLabel.text = model.complain_subject_content;
    self.timeLabel.text = [MakerTools getFormatTime:model.complain_datetime];
    if ([model.complain_state isEqualToString:@"20"])
    {
        self.statusLabel.text = @"待申诉";
    }else if ([model.complain_state isEqualToString:@"30"])
    {
        self.statusLabel.text = @"对话中";
    }else if ([model.complain_state isEqualToString:@"40"])
    {
        self.statusLabel.text = @"待仲裁";
    }else if ([model.complain_state isEqualToString:@"99"])
    {
        self.statusLabel.text = @"已完成";
    }
    
    
}

@end
